package _8_inherit;

public class Dog extends Animal {
	private String hair;
	public String getHair()
	{
		return hair;
	}
	public void setHair(String hair)
	{
		this.hair = hair;
	}
	//方法的重写
	public void eat()
	{
		System.out.println("狗狗在吃肉肉...");
	}
}
